package com.sws.yygh.cmn.client;

import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @program: Appointment-hospital-registration-system
 * @description: 数据字典API接口
 * @author:
 * @create: 2022-07-19 23:29
 */
@FeignClient(value = "service-cmn",path = "/admin/cmn/dict/")
public interface DictFeignClient {
    /**
     * 获取数据字典名称
     * @param dictCode
     * @param value
     * @return
     */
    @GetMapping("getName/{dictCode}/{value}")
    String getName(@PathVariable("dictCode") String dictCode,@PathVariable("value") String value);

    /**
     * 获取数据字典名称
     * @param value
     * @return
     */
    @GetMapping("getName/{value}")
    String getName(@PathVariable("value") String value);

}
